<template>
  <div class="app">
    <nuxt-link 
      class="btn btn-soft fixed top-5 right-10 z-1000" 
      :class="route.path === '/knowledge' ? 'btn-secondary' : 'btn-primary'"
      :to="route.path === '/knowledge' ? '/' : '/knowledge'"
    >
      {{ route.path === '/knowledge' ? '返回' : '知识库管理' }}
    </nuxt-link>
    <NuxtPage />
  </div>
</template>

<script setup>
const route = useRoute();
</script>
